<template>
  <div class="ajax">
    <form action="http://localhost:8080" method="post" ref="form">
      <div>
        <span>姓名:</span>
        <input type="text" name="name" />
      </div>
      <div>
        <span>性别:</span>
        <label for=""> 男:<input type="radio" name="sex" value="男" /> </label>
        <label for=""> 女:<input type="radio" name="sex" value="女" /> </label>
      </div>
      <div>
        <input type="submit" value="提交" @click="submit" />
      </div>
    </form>
  </div>
</template>

<script>
export default {
  name: 'ajax',
  data() {
    return {}
  },
  mounted() {},
  methods: {
    submit(e) {
      console.log(e, 'e')
    }
  }
}
</script>

<style lang="less" scoped>
.ajax {
}
</style>
